use base_demo::algorithms::Sorter;
use base_demo::shapes::{Circle, Rectangle, Area};

fn main() {
    // 使用 shapes 模块
    let rect = Rectangle::new(10.0, 20.0);
    println!("Rectangle area: {}", rect.area());
    
    let circle = Circle::new(5.0);
    println!("Circle area: {}", circle.area());
    
    // 使用 algorithms 模块
    let mut numbers = vec![5, 2, 9, 1, 5, 6];
    Sorter::sort(&mut numbers);
    println!("Sorted numbers: {:?}", numbers);
    
    let mut words = vec!["banana", "apple", "pear", "orange"];
    Sorter::sort(&mut words);
    println!("Sorted words: {:?}", words);
}